package com.c1g19.service.guide;

import com.c1g19.dao.guide.GuideDao;
import org.apache.log4j.Logger;

import java.util.List;
import java.util.Map;

/**
 * Created by Mr_C on 2017/3/7.
 */
public class GuideService {
    private static final Logger logger = Logger.getLogger(GuideService.class);

//    public List<Map<String, Object>> getNearOffice(float x, float y){
//        List<Map<String, Object>> candidate_office_list = ;
//        return candidate_office_list;
//    }


    /**
     * 获得所有的楼层主图片
     * @return
     */
    public Map<String, Object> getAllMainPicture(){
        GuideDao guideDao = new GuideDao();
        Map<String, Object> allMainPictureList = guideDao.getAllMainPicture();
        return allMainPictureList;
    }

    /**
     * 获得主图片下的诊室position
     * @param picture_id
     * @return
     */
    public Map<String, Object> getPositionwithID(int picture_id){
        GuideDao guideDao = new GuideDao();
        Map<String, Object> positionList = guideDao.getOfficeByPId(picture_id);
        return positionList;
    }
}
